import request from "@/utils/request";
export function fetchList(params) {
  return request({
    url: "/dms/dynamic/list",
    method: "get",
    params: params,
  });
}

export function createDynamic(data) {
  return request({
    url: "/dms/dynamic/create",
    method: "post",
    data: data,
  });
}

export function deleteDynamic(id) {
  return request({
    url: "/dms/dynamic/delete/" + id,
    method: "get",
  });
}

export function getDynamic(id) {
  return request({
    url: "/dms/dynamic/" + id,
    method: "get",
  });
}

export function updateDynamic(id, data) {
  return request({
    url: "/dms/dynamic/update/" + id,
    method: "post",
    data: data,
  });
}
